package com.zwy.ubts.service;

import com.zwy.ubts.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Zhou Wenying
 * @Description:
 * @Date Created in 23:36 2023/3/7
 */
public interface BookService {
    int addBook(Book book);
    public List<Book> selectHotBook();
    public List<Book> selectNewBook();
    public List<Book> selectAllBook(String like);
    List<Book> selectBookByUserId(Integer userId);
    List<Book> selectBookByCheck();
    Integer deleteBookById(Integer bookId);
    Book selectByBookId(Integer bookId); //通过bookid查看书籍信息
    List<Book> queryBookByClassify(Integer bookClassify,String like);//通过类别id显示书籍
    Integer updateBookById(Book book);


}
